package com.wjb.controller;


import com.wjb.pojo.dto.OrderxDto;
import com.wjb.pojo.entity.Orderx;
import org.springframework.beans.BeanUtils;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Date;
import java.util.UUID;

/**
 * @author : 王济彬
 * @date: 2025/5/24 - 05 - 24 - 23:29
 * @Description: com.wjb.controller
 * @version: 1.0
 */
@SpringBootTest
public class Test {
    @org.junit.Test
    public void test01(){
        OrderxDto orderdto = new OrderxDto("11",new Date(),"11",1);
        String uuid = UUID.randomUUID().toString();
        Orderx order = new Orderx();
        BeanUtils.copyProperties(orderdto,order);
        order.setOrderId(uuid);
        System.out.println(order);
    }
}
